package com.uzai.console.entity.es;

import com.uzai.common.utils.EsIndexName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @Auther: liuqu
 * @Date: 2021/11/19 11:33
 * @Description: 用户登录日记ES index
 */

@ApiModel("报警记录")
@Document(indexName = EsIndexName.UZAI_ALARM_MSG, shards = 3, replicas = 2)
public class EsAlarmMsg implements Serializable {

    private static final long serialVersionUID = 1259150947648510129L;

    @ApiModelProperty("主键ID")
    @Id
    @Field(type = FieldType.Keyword)
    private String id;

    @ApiModelProperty("运营商ID")
    @Field(type = FieldType.Long)
    private Long merId;

    @ApiModelProperty("报警类型(0-设备监控；1-事件监控)")
    @Field(type = FieldType.Integer)
    private Integer alarmType;

    @ApiModelProperty("机器人类型")
    @Field(type = FieldType.Text)
    private String deviceType;

    @ApiModelProperty("机器人唯一id")
    @Field(type = FieldType.Long)
    private Long deviceUniqueId;

    @ApiModelProperty("事件监控类型")
    @Field(type = FieldType.Integer)
    private Integer msgType;

    @ApiModelProperty("报警联系人id列表")
    @Field(type = FieldType.Text)
    private String alarmContacters;

    @ApiModelProperty("报警消息")
    @Field(type = FieldType.Text)
    private String message;

    @ApiModelProperty("添加时间")
    @Field(type = FieldType.Integer)
    private Integer createTime;

    @ApiModelProperty("修改时间")
    @Field(type = FieldType.Integer)
    private Integer updateTime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getMerId() {
        return merId;
    }

    public void setMerId(Long merId) {
        this.merId = merId;
    }

    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public Long getDeviceUniqueId() {
        return deviceUniqueId;
    }

    public void setDeviceUniqueId(Long deviceUniqueId) {
        this.deviceUniqueId = deviceUniqueId;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public String getAlarmContacters() {
        return alarmContacters;
    }

    public void setAlarmContacters(String alarmContacters) {
        this.alarmContacters = alarmContacters;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Integer updateTime) {
        this.updateTime = updateTime;
    }
}
